/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package murcielago.GUI;

import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;
import murcielago.main.Murcielago;
import murcielago.util.ReadFile;

/**
 *
 * @author gato
 */
public class OpenFile extends ScreenGui{
    
    private Form screen;
    
    public OpenFile(Murcielago murcielago){
        super(murcielago);
        screen = new Form("Murcielago");
        this.cargarComponentes(screen);
        
        ReadFile read = new ReadFile();
        String text = read.readFile("/murcielago/resources/test.txt");
        
        StringItem texto = new StringItem("Text:", text);
        screen.append(texto);
    }
    
    public Form getScreen(){
        return this.screen;
    }

}
